<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>华猫商城</title>
		<style></style>
		<link href="../css/jquery.validator.css" rel="stylesheet">
		<link href="../css/common.css" rel="stylesheet">

		<link href="../plugin/userLib/css/user.css" rel="stylesheet">
		<link href="../plugin/userLib/css/userinfo.css" rel="stylesheet">
		<link href="../plugin/userLib/css/my_user.css" rel="stylesheet">
		<link href="../css/base.css" rel="stylesheet">
		<style>
			.n-default .n-left,
			.n-default .n-right {
				margin-top: 32px!important;
			}
		</style>
	</head>

	<body>
		<div id="header"></div>
		<div id="headerBox"></div>
		<!--<div id="nav_menu"></div>-->
		<div class="ZZHT-wrap">
			<div class="ZZHT-header" style="border-bottom: 1px solid #ffffff;">
				<div class="ZZHT-shop-nav">
					<div class="ZZHT-nav-box">
						<a href="#">
							<li class="liselect ZZHT-lfloat ZZHT-nav-boxa">用户中心</li>
						</a>
						<div class="ZZHT-clear"></div>
					</div>
				</div>
				<div class="ZZHT-clear"></div>
			</div>
			<div class="ZZHT-main">
				<div id="underLine_left"></div>
				<div class="ZZHT-content">

					<div class="ZZHT-user-head clearfix">
						<b>赠送积分</b>
						<span class="user_bread fr">
        当前位置：<span>首页</span>--<span>赠送积分</span>
						</span>
					</div>
					<div class="mains bz">
						<form name="handOut" id="handOut" action="" method="post" class="form-condensed nice-validator n-default" novalidate="novalidate">
							<div class="form-group">
								<label class="control-label"><span class="text-label">库存积分：</span>&nbsp;&nbsp;<span class="ZZHT-fred kcjf"></span></label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">买家：</span><input type="text" id="checkData" name="checkData" class="" placeholder="请输入买家用户名或者手机号码" aria-required="true"></label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">核对用户信息：</span><span id="standardShareMan">--</span></label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">消费金额：</span><input onkeydown="javascript:ZZHT.isNumberdote(this)" type="text" name="totalMoney" id="totalMoney" class="ipt" aria-required="true"></label>
							</div>
							<div class="form-group">
								<label class="control-label">
									<span class="text-label">奖励比例：</span>
									<select id="scoreRatio">
										<option value="100">100%</option>
										<option value="200">200%</option>
										<option value="300">300%</option>
										<option value="400">400%</option>
										<option value="500">500%</option>
										<option value="0">自定义</option>
									</select>
								</label>
							</div>
							<div class="form-group" id="input_score" style="display: none;">
								<label class="control-label">
									<input type="text" onkeydown="javascript:ZZHT.isNumberdote(this)" id="scoreRatio2" name="scoreRatio2" style="width: 150px !important;margin-left: 160px;">
								</label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">奖励积分：</span>&nbsp;&nbsp;<span id="totalScore" class="ZZHT-fred">0</span></label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">备注：</span><input type="text" id="orderRemarks" name="orderRemarks" class="ipt" placeholder="请输入备注信息"></label>
							</div>
							<div class="form-group">
								<label class="control-label"><span class="text-label">交易密码：</span>
										<input type="text" onfocus="this.type='password'" maxlength="6" fruit="true" autocomplete="off" name="payPwd" id="payPwd" class="ipt" placeholder="请输入交易密码" aria-required="true" style="margin-left:0;">
								</label>
							</div>
							<button id="subMitButton" class="sure_btn confirm_pay">确认</button>
						</form>
					</div>

				</div>
			</div>
			<div style="clear:both;"></div>
			<br>
		</div>
		<div id="ck3"></div>
		<script src="../js/jquery.min.js"></script>
		<script src="../js/jquery.validator.js"></script>
		<script src="../js/zh-CN.js"></script>
		<script src="../plugin/layer/layer.js"></script>
		
		<script type="text/javascript" src="../js/ljf_base.js"></script>
		<script type="text/javascript" src="../js/common.js"></script>
		<script type="text/javascript" src="../js/common_view.js"></script>
		<script type="text/javascript" src="../plugin/userLib/js/score.js"></script>
		<script type="text/javascript">
			var inviteId;//要赠送的用户id;
			var shopId;//店铺id;
			$(function(){
				$.get(SURL+'sktShops/findByUserId', {userId:localStorage.userId}, function (data, textStatus) {//获取店铺id
                	shopId = data.entity[0].shopId;
					handOut();
				});
				$.ajax({//获取用户余额
					type: "get",
					url: SURL + "sktShops/findByUserIdMn",
					data: {
						"userId":localStorage.userId,
					},
					dataType: 'json',
					success: function(res) {
						console.log(res);
						if(res.messageCode==200){
							$('.kcjf').html(res.entity[0].stockScore);
						}else{
							layer.msg(res.message);
						}
					}
				});
			})
		</script>
	</body>

</html>